<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>常用枚举 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		<style type="text/css">
			#enums .label{
				padding:2px;				
				margin:5px;
				line-height: 150%;
				display: inline-block;
			}
			#enums .controls{
				margin-left:5px;
			}
		</style>
	</head>
	<body>
		<div class="workspace">
			<input type="hidden" id="enum-select-box" value="select"/>
		    <div id="enums">
                <div id="{$enum}-wrap">
	                {foreach from=$items item=item}
	                	<span id="enum_{$item.enum_id}" class="enums label {$labels|random}"><input class="enum" type="checkbox" value="{$item.enum_id}" enum="{$item.enum_val|escape}"/><i class="icon-trash icon-white"></i>{$item.enum_val}</span>
	                {/foreach}
	                <br class="clear"/>
	                <div class="controls">
						<div class="input-prepend input-append">
							<span class="add-on">{$enum_title}</span><input type="text" size="128" id="new-{$enum}" class="span3"><button id="btn-add-{$enum}" type="button" class="btn btn-add"><i class="icon-plus"></i>添加</button>
						</div>
					</div>
                </div>
          	</div>
		</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>		
		<script type="text/javascript" src="enum.js"></script>
	</body>
</html>
